<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<%@include file="/WEB-INF/common/taglibs.jsp"%>    
    <title>江苏龙芯梦兰科技股份有限公司-SMT生产管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="${ctx}resources/css/common.css" />
  </head>
  <script type="text/javascript">
  		function submitForm(){
  		var description = $("#description").val();
  		var process = $("#process").val();
  		var process = $("#process").val();
  		if(description==""){
  			alert("不良描述不能为空!");
  			$("#description").focus();
  			return ;
  		}
  		if(process==""){
  			alert("处理不能为空!");
  			$("#process").focus();
  			return ;
  		}
  		$("#saveReport").submit();
  	}
  	
  </script>
 <body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx}resources/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1">维修${circuitBoard.icNo}板子</span></td>
              </tr>
            </table></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d3eaef">
      <tr>
        <td width="100%" height="auto" bgcolor="#d3eaef">
        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d3eaef">
              <tr>
                <td width="100%" height="20" align="left" style="text-indent:20px;font-size: 12px">带*号为必填选项</td>
              </tr>
   			</table>
        </td>
      </tr>
   	<form action="${ctx}repair/save.htm" method="post" id="saveReport">
   	<input name="boardid" type="hidden" value="${circuitBoard.id}">
   	<input name="report.errorCode" type="hidden" value="${report.errorCode}">
   	<input name="report.location" type="hidden" value="${report.location}">
     <tr>
        <td width="100%" height="20" bgcolor="#d3eaef">
	        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%"  align="right">板子编号: </td>
	                <td width="15%" align="left">${circuitBoard.icNo}</td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	              </table>
	     </td>
	  </tr>
	  <tr>
	  	<td>
	   			  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%" align="right">*错误代码: </td>
	                <td width="15%" align="left">${report.errorCode}</td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	             </table>
	     </td>
	  </tr>
	  <tr>
		<td>
		 <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%" align="right">*不良位置: </td>
	                <td width="15%" align="left">${report.location}</td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	       </table>
	      </td>
	   </tr>
	     <tr>
	   <td>
	    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%" align="right">*描述:</td>
	                <td width="15%" align="left" ><textarea name="report.description" id="description"></textarea></td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	        </table>
	     </td>
	  </tr>
	   <tr>
	   <td>
	    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%" align="right">*处理:</td>
	                <td width="15%" align="left" ><textarea name="report.process" id="process"></textarea></td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	        </table>
	     </td>
	  </tr>
	   <tr>
	   <td>
	    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#fbfcfd">
	              <tr height="25">
	                <td width="42%" align="right">结果:</td>
	                <td width="15%" align="left" >&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="report.result" id="result" checked="checked" value="0"/>良品<input type="radio" name="report.result" id="result" value="2"/>报废</td>
	                <td width="43%" align="left" class="slyle_text"></td>
	              </tr>
	        </table>
	     </td>
	  </tr>
	
	 </form>
	   	<tr>
	   		<td>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
              <tr height="50" >
                <td width="50%" align="right"><input type="image" onclick="submitForm()" src="${ctx}resources/images/dl_1.gif" /></td>
                <td width="50%" style="text-indent:5px"><a href="${ctx}board/repairList.htm"><img src="${ctx}resources/images/dl_2.gif" style="border: 0px"/></a></td>
              </tr>
   			</table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</body>
</html>
